package com.csun.cmny.provider.model.dto;

import com.csun.cmny.provider.model.domain.OmcCycleExpenseItem;
import com.csun.cmny.provider.model.domain.OmcOldmanPaidExpenseItem;
import com.csun.cmny.provider.validator.OmcExpenseTypeEditValidator;
import com.csun.cmny.provider.validator.SelectExpenseAddValidator;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
public class SelectExpenseDto implements Serializable {

    /*
    * 老人id
    * */
    @NotNull(message = "{oldman.id.null}",
            groups = {SelectExpenseAddValidator.class})
    private Long oldmanId;

    /*
    * 套餐id
    * */
    private Long setMealId;

    /*
    * 预缴周期Id
    */
    @NotNull(message = "{prepaidCycle.id.null}",
            groups = {SelectExpenseAddValidator.class})
    private Long prepaidCycleId;

    /*
    * 购买项目集合
    * */
    private List<OmcOldmanPaidExpenseItem> oldmanPaidExpenseItemList;


    /*
    * 入院日期
    * */
    @NotNull(message = "{OldMan.inDate.null}",
            groups = {SelectExpenseAddValidator.class})
    private String oldManInDate;

    /*
    * 实缴合集
    * */
    @NotNull(message = "{OldMan.totalFee.null}",
            groups = {SelectExpenseAddValidator.class})
    private BigDecimal totalFee;

    /*
    * 预缴费用
    * */
    @NotNull(message = "{OldMan.prepaidFee.null}",
            groups = {SelectExpenseAddValidator.class})
    private BigDecimal prepaidFee;

    /*
    * 总原价
    * */
    private BigDecimal originalFee;

    /*
    * 人员类别减免费用
    * */
    private BigDecimal personCategoryReduceFee;

    /*
    * 人工减免费用
    * */
    private BigDecimal manualReducefee;
}
